﻿using System.Windows;

namespace WpfApp1;

public partial class MyWindow : Window
{
    public MyWindow()
    {
        InitializeComponent();

        // 默认显示 Page1
        MainFrame.Navigate(new MyPage1());
    }

    private void BtnPage1_Click(object sender, RoutedEventArgs e)
    {
        MainFrame.Navigate(new MyPage1());
    }

    private void BtnPage2_Click(object sender, RoutedEventArgs e)
    {
        MainFrame.Navigate(new MyPage2());
    }
    
    
}